import view_X_O.FrameCub;
import view_X_O.FrameXO;

/**
 * Created with IntelliJ IDEA.
 * User: User
 * Date: 09.07.14
 * Time: 21:02
 * To change this template use File | Settings | File Templates.
 */
public class Test_X_O_ {
    public static void main(String[] args) throws InterruptedException {

        Thread frameCub = new Thread(new FrameCub());

        Thread framexo = new Thread(new FrameXO());

        frameCub.start();
        Thread.State ts;
        framexo.start();
        do {
            framexo.wait(1000);
            ts = frameCub.getState();

        }
        while (ts == Thread.State.RUNNABLE);



    }


}
